package com.example.springbootsecurity;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@EnableJpaRepositories
@SpringBootApplication
public class SpringBootSecurityApplication {

    public static void main(String[] args) {
//Spring Security5.0版本及之后的默认密码的编码方式BCryptPasswordEncoder,而不再是NoOpPasswordEncoder
//        BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
//        //加密""
//        String encode = bCryptPasswordEncoder.encode("123456");
//        System.out.println(encode);

        SpringApplication.run(SpringBootSecurityApplication.class, args);
    }

}
